package com.huluobo.mvvm_base.mvvm.db;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;

import com.huluobo.mvvm_base.mvvm.bean.Money;

/**
 * Created by LC on 2024/2/27.
 */
@Dao
public interface MoneyDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insertUserMoney(Money money);

    @Delete
    void deleteUserMoney(Money money);

    @Update
    void updateUserMoney(Money money);

    @Query("select * from user_money where user_name = :username")
    Money queryUserMoney(String username);
}
